package cn.edu.cimv.dao.mapper;

import cn.edu.cimv.dao.entity.Student;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by 门铎 on 2016/6/27.
 */
@Repository
public interface StudentMapper {
    //insert 研究生信息
    void insertStudent(@Param("student") Student student);
    //update 研究生信息
    void updateStudent(@Param("student") Student student);
    //delete 研究生信息
    void deleteStudent(@Param("id") int id);
    //查询研究生信息列表
    List<Student> queryStudent(@Param("flag") int flag);
    //根据ID查单条研究生信息
    Student queryStudentById(@Param("id")int id);
    List<String> queryStudentHighFlag(@Param("flag") int flag);
    List<String> queryStudentStudyYear(@Param("flag") int flag,@Param("studyFlag")int studyFlag);
    List<Student> queryStudentByYearAndHighStudy(@Param("highFlag") int highFlag,@Param("studyYear")String studyYear,@Param("studyFlag")int studyFlag);
}
